package cn.unknowpupil.init.domain.system;

import cn.unknowpupil.init.configure.mybatisplus.base.SuperEntity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;


/**
 * Created at 2020-11-04 by  w10g <br>
 * Initialize SysEmail  ... <br>
 *  邮件配置表
 *
 * @author unknowpupil
 * @since 0.0.1
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("sys_email")
@ApiModel(value = "SysEmail 域", description = "邮件配置表")
public class SysEmail extends SuperEntity<SysEmail> {

private static final long serialVersionUID=1L;
    /**
     * 邮件服务器SMTP地址
     */
    @ApiModelProperty(value = "邮件服务器SMTP地址")
    @TableField(value ="host")
    private String host;
    /**
     * 邮件服务器 SMTP 端口
     */
    @ApiModelProperty(value = "邮件服务器 SMTP 端口")
    @TableField(value ="port")
    private String port;
    /**
     * 发件者用户名
     */
    @ApiModelProperty(value = "发件者用户名 默认为发件人邮箱前缀")
    @TableField(value ="user")
    private String user;
    /**
     * 密码
     */
    @ApiModelProperty(value = "密码")
    @TableField(value ="pass")
    private String pass;
    /**
     * 收件人
     */
    @ApiModelProperty(value = " 发件人（必须正确，否则发送失败）")
    @TableField(value ="from_user")
    private String fromUser;

}